set -e
set -o pipefail

fixedDeflectionSensitivityNmPerV=$DEFL_SENS; fixedSpringConstantNPerM=$K; for d in $DIRS; do p=$(dirname ${d}); b=$(basename ${d})${fixedDeflectionSensitivityNmPerV//*/_${fixedDeflectionSensitivityNmPerV}}${fixedSpringConstantNPerM//*/_${fixedSpringConstantNPerM}}; mkdir -p ${p}/analysis/${b}_analysis/${b}_svg && find ${p}/analysis/${b}_analysis/${b}_svg -type f -exec rm {} +; done && bash $(dirname "${BASH_SOURCE[0]}")/make_filtered_images.sh
